<?php
declare (strict_types=1);

namespace app\validate\weChat;

use think\Validate;

class Examinee extends Validate
{
    /**
     * 定义验证规则
     * 格式：'字段名' =>  ['规则1','规则2'...]
     *
     * @var array
     */
    protected $rule = [
        'name' => ['require'],
        'area' => ['require'],
        'id_card' => ['require'],
        'img' => ['require'],
        'nation' => ['require'],
        'phone' => ['require'],
        'active' => ['require'],
        'country' => ['require']
    ];

    /**
     * 定义错误信息
     * 格式：'字段名.规则名' =>  '错误信息'
     *
     * @var array
     */
    protected $message = [
        'name.require' => '考生姓名不能为空',
        'area.require' => '所属地区不能为空',
        'id_card.require' => '证件号不能为空',
        'img.require' => '照片不能为空',
        'nation.require' => '民族不能为空',
        'phone.require' => '手机号不能为空',
        'active.require' => '非法操作',
        'country.require'=>'国籍不能为空'
    ];
}
